﻿using Microsoft.Owin;
using Owin;

[assembly: OwinStartup(typeof(OAuthServerApi.App_Start.Startup))]

namespace OAuthServerApi.App_Start
{
    public partial class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            //html事件处理
            app.Map("/do", a =>
            {
                a.Use<ServerApiMiddleware>();
            });
            //异常处理
            app.Use<ExceptionMiddleware>();
            //OAuth
            ConfigureAuth(app);
        }
    }
}
